Optimal. Leaf size=114 \[ \frac {x \sqrt {d x-c} \sqrt {c+d x} \left (4 a d^2+b c^2\right )}{8 d^2}-\frac {c^2 \left (4 a d^2+b c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d x-c}}{\sqrt {c+d x}}\right )}{4 d^3}+\frac {b x (d x-c)^{3/2} (c+d x)^{3/2}}{4 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {389, 38, 63, 217, 206} \[ \frac {x \sqrt {d x-c} \sqrt {c+d x} \left (4 a d^2+b c^2\right )}{8 d^2}-\frac {c^2 \left (4 a d^2+b c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d x-c}}{\sqrt {c+d x}}\right )}{4 d^3}+\frac {b x (d x-c)^{3/2} (c+d x)^{3/2}}{4 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 38
Rule 63
Rule 206
Rule 217
Rule 389
Rubi steps
\begin {align*} \int \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx &=\frac {b x (-c+d x)^{3/2} (c+d x)^{3/2}}{4 d^2}-\frac {\left (-b c^2-4 a d^2\right ) \int \sqrt {-c+d x} \sqrt {c+d x} \, dx}{4 d^2}\\ &=\frac {\left (b c^2+4 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{8 d^2}+\frac {b x (-c+d x)^{3/2} (c+d x)^{3/2}}{4 d^2}+\frac {\left (c^2 \left (-b c^2-4 a d^2\right )\right ) \int \frac {1}{\sqrt {-c+d x} \sqrt {c+d x}} \, dx}{8 d^2}\\ &=\frac {\left (b c^2+4 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{8 d^2}+\frac {b x (-c+d x)^{3/2} (c+d x)^{3/2}}{4 d^2}-\frac {\left (c^2 \left (b c^2+4 a d^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {2 c+x^2}} \, dx,x,\sqrt {-c+d x}\right )}{4 d^3}\\ &=\frac {\left (b c^2+4 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{8 d^2}+\frac {b x (-c+d x)^{3/2} (c+d x)^{3/2}}{4 d^2}-\frac {\left (c^2 \left (b c^2+4 a d^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{4 d^3}\\ &=\frac {\left (b c^2+4 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{8 d^2}+\frac {b x (-c+d x)^{3/2} (c+d x)^{3/2}}{4 d^2}-\frac {c^2 \left (b c^2+4 a d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{4 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.28, size = 129, normalized size = 1.13 \[ \frac {d x \left (c^2-d^2 x^2\right ) \left (b \left (c^2-2 d^2 x^2\right )-4 a d^2\right )-2 c^{5/2} \sqrt {d x-c} \sqrt {\frac {d x}{c}+1} \left (4 a d^2+b c^2\right ) \sinh ^{-1}\left (\frac {\sqrt {d x-c}}{\sqrt {2} \sqrt {c}}\right )}{8 d^3 \sqrt {d x-c} \sqrt {c+d x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.13, size = 88, normalized size = 0.77 \[ \frac {{\left (2 \, b d^{3} x^{3} - {\left (b c^{2} d - 4 \, a d^{3}\right )} x\right )} \sqrt {d x + c} \sqrt {d x - c} + {\left (b c^{4} + 4 \, a c^{2} d^{2}\right )} \log \left (-d x + \sqrt {d x + c} \sqrt {d x - c}\right )}{8 \, d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.35, size = 288, normalized size = 2.53 \[ \frac {24 \, {\left (2 \, c \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right ) + \sqrt {d x + c} \sqrt {d x - c}\right )} a c + 4 \, {\left (\sqrt {d x + c} \sqrt {d x - c} {\left ({\left (d x + c\right )} {\left (\frac {2 \, {\left (d x + c\right )}}{d^{2}} - \frac {7 \, c}{d^{2}}\right )} + \frac {9 \, c^{2}}{d^{2}}\right )} + \frac {6 \, c^{3} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{2}}\right )} b c + {\left ({\left ({\left (d x + c\right )} {\left (2 \, {\left (d x + c\right )} {\left (\frac {3 \, {\left (d x + c\right )}}{d^{3}} - \frac {13 \, c}{d^{3}}\right )} + \frac {43 \, c^{2}}{d^{3}}\right )} - \frac {39 \, c^{3}}{d^{3}}\right )} \sqrt {d x + c} \sqrt {d x - c} - \frac {18 \, c^{4} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{3}}\right )} b d - 12 \, {\left (2 \, c^{2} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right ) - \sqrt {d x + c} \sqrt {d x - c} {\left (d x - 2 \, c\right )}\right )} a}{24 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.06, size = 182, normalized size = 1.60 \[ \frac {\sqrt {d x -c}\, \sqrt {d x +c}\, \left (2 \sqrt {d^{2} x^{2}-c^{2}}\, b \,d^{3} x^{3} \mathrm {csgn}\relax (d )-4 a \,c^{2} d^{2} \ln \left (\left (d x +\sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\relax (d )\right ) \mathrm {csgn}\relax (d )\right )+4 \sqrt {d^{2} x^{2}-c^{2}}\, a \,d^{3} x \,\mathrm {csgn}\relax (d )-b \,c^{4} \ln \left (\left (d x +\sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\relax (d )\right ) \mathrm {csgn}\relax (d )\right )-\sqrt {d^{2} x^{2}-c^{2}}\, b \,c^{2} d x \,\mathrm {csgn}\relax (d )\right ) \mathrm {csgn}\relax (d )}{8 \sqrt {d^{2} x^{2}-c^{2}}\, d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.54, size = 137, normalized size = 1.20 \[ -\frac {b c^{4} \log \left (2 \, d^{2} x + 2 \, \sqrt {d^{2} x^{2} - c^{2}} d\right )}{8 \, d^{3}} - \frac {a c^{2} \log \left (2 \, d^{2} x + 2 \, \sqrt {d^{2} x^{2} - c^{2}} d\right )}{2 \, d} + \frac {1}{2} \, \sqrt {d^{2} x^{2} - c^{2}} a x + \frac {\sqrt {d^{2} x^{2} - c^{2}} b c^{2} x}{8 \, d^{2}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b x}{4 \, d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 17.43, size = 734, normalized size = 6.44 \[ \frac {a\,x\,\sqrt {c+d\,x}\,\sqrt {d\,x-c}}{2}-\frac {\frac {b\,c^4\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}{2\,\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}+\frac {35\,b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^3}+\frac {273\,b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^5}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^5}+\frac {715\,b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^7}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^7}+\frac {715\,b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^9}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^9}+\frac {273\,b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{11}}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{11}}+\frac {35\,b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{13}}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{13}}+\frac {b\,c^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{15}}{2\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{15}}}{d^3-\frac {8\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+\frac {28\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}-\frac {56\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^6}+\frac {70\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^8}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^8}-\frac {56\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{10}}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{10}}+\frac {28\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{12}}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{12}}-\frac {8\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{14}}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{14}}+\frac {d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{16}}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{16}}}-\frac {a\,c^2\,\ln \left (d\,x+\sqrt {c+d\,x}\,\sqrt {d\,x-c}\right )}{2\,d}+\frac {b\,c^4\,\mathrm {atanh}\left (\frac {\sqrt {c+d\,x}-\sqrt {c}}{\sqrt {-c}-\sqrt {d\,x-c}}\right )}{2\,d^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b x^{2}\right ) \sqrt {- c + d x} \sqrt {c + d x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________